/*
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *如果数据库字段发生变化，请在代码生器重新生成此Model
 */
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SqlSugar;
using VOL.Entity.SystemModels;

namespace VOL.Entity.DomainModels
{
    [Entity(TableCnName = "出入库类型",TableName = "inouttypemodel")]
    public partial class inouttypemodel:BaseEntity
    {
        /// <summary>
       ///出入库类型id
       /// </summary>
       [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
       [Key]
       [Display(Name ="出入库类型id")]
       [Column(TypeName="bigint")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public long InOutTypeId { get; set; }

       /// <summary>
       ///出入库类型编号
       /// </summary>
       [Display(Name ="出入库类型编号")]
       [Column(TypeName="nvarchar(max)")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public string InOutTypeCode { get; set; }

       /// <summary>
       ///出入库类型名称
       /// </summary>
       [Display(Name ="出入库类型名称")]
       [Column(TypeName="nvarchar(max)")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public string InOutTypeName { get; set; }

        /// <summary>
        ///出库或入库
        /// </summary>
        [Display(Name = "出库或入库")]
        [Column(TypeName = "sbyte")]
        [Editable(true)]
        [Required(AllowEmptyStrings = false)]
        public sbyte InOrOut { get; set; } 

       /// <summary>
       ///行排序
       /// </summary>
       [Display(Name ="行排序")]
       [Column(TypeName="int")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public int InOutTypeSort { get; set; }

        /// <summary>
        ///状态
        /// </summary>
        [Display(Name = "状态")]
        [Column(TypeName = "sbyte")]
        [Editable(true)]
        [Required(AllowEmptyStrings = false)]
        public sbyte InOutTypeStatus { get; set; } = 1;

       /// <summary>
       ///出入库类型描述
       /// </summary>
       [Display(Name ="出入库类型描述")]
       [Column(TypeName="nvarchar(max)")]
       [Editable(true)]
       public string InOutTypeDesc { get; set; }

       /// <summary>
       ///创建人
       /// </summary>
       [Display(Name ="创建人")]
       [MaxLength(30)]
       [Column(TypeName="nvarchar(30)")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public string Creator { get; set; }
       
       /// <summary>
       ///创建人ID
       /// </summary>
       [Display(Name ="创建人ID")]
       [Column(TypeName="int")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public int CreateID { get; set; }

       /// <summary>
       ///创建时间
       /// </summary>
       [Display(Name ="创建时间")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public DateTime CreateDate { get; set; }=DateTime.Now;

       /// <summary>
       ///修改人
       /// </summary>
       [Display(Name ="修改人")]
       [MaxLength(30)]
       [Column(TypeName="nvarchar(30)")]
       [Editable(true)]
       public string Modifier { get; set; }
       
       /// <summary>
       ///修改人ID
       /// </summary>
       [Display(Name ="修改人ID")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? ModifyID { get; set; }

       /// <summary>
       ///修改时间
       /// </summary>
       [Display(Name ="修改时间")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       public DateTime? ModifyDate { get; set; } = DateTime.Now;

        /// <summary>
        ///是否删除
        /// </summary>
        [Display(Name ="是否删除")]
       [Column(TypeName="sbyte")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public sbyte IsDelete { get; set; }=0;

       
    }
}